package $NAMESPACE.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ugeez.commons.account.persistence.entity.User;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
@TableName(value = "tb_user", resultMap = "com.ugeez.commons.account.persistence.dao.UserMapper.user_result_map")
public class AppUser extends User {

    public static AppUser valueOf(User user) {
        AppUser obj = new AppUser();
        BeanUtils.copyProperties(user, obj);
        return obj;
    }

    protected List<String> roles;

}
